<div class="pl20 pr20 pt20">
	<form name="biz_ct_order_daoda_from" id="biz_ct_order_daoda_from">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td style="width:60px">消费金额：</td>
				<td><input name="order_money" style="width:94%;" class="f-input" /></td>
			</tr>
			<tr>
				<td colspan="2" style="text-align:center;">
					<div class="blank"></div>
					<span class="grebtn grebtn_s lh22">
	                    <i class="green_line"></i>
	                    <strong class="grebtn_in"><a href="javascript:void(0);" id="sure_daoda_ct_btn" class="grebtn_bg">确定</a></strong>
	                    <i class="green_line"></i>
	                </span>
				</td>
			</tr>
		</table>
		<input type="hidden" value="{$order_id}" name="order_id" />
	</form>
</div>
<script type="text/javascript">
	jQuery(function(){
		$("#sure_daoda_ct_btn").bind("click",function(){
			
			if(confirm("确定预订用户已就餐吗？")){
				var query = $("#biz_ct_order_daoda_from").serialize();
				var order_money=$("input[name='order_money']").val();
		
				if(order_money>0){
					$.ajax({
						url:APP_ROOT + "/biz.php?ctl=ctorder&act=do_daoda",
						data:query,
						type:"post",
						cache:false,
						dataType:"json",
						success:function(result){
							if(result.status==1)
							{			
								window.location.reload();
							}
							else{
								$.showErr(result.message);
							}
						}
					});
				}
				else{ 
				alert("请填入实际消费金额如：200或200.88");
				}
			}
			else{
				$.weeboxs.close();
			}
			return false;
		});
	});
</script>